const mongoose = require('mongoose')
const Schema = mongoose.Schema;
const role = new Schema({
  name: {
    type: String,
    required: true,
    unique: true
  },
  registerTime: {
    type: Date,
    default: Date.now
  }
})
module.exports = mongoose.model('role', role)